import Vue from 'vue';
import Router from 'vue-router';
import Hello from '@/components/console';
import Test from '@/components/Test';
import Class from '@/components/caseClass';
import Result from '@/components/desiredResult';
import Maintenance from '@/components/maintenance';
import PreData from '@/components/preData';
import Plan from '@/components/testPlan';
import Report from '@/components/testReport';
import Index from '@/components/index';
import AddCase from '@/components/addCase';
import AddPre from '@/components/addPre';
import AddResPage from '@/components/addResultPage';
import Page from '@/components/testPage';
import Operator from '@/components/operator';
import Login from '@/components/login';
import Home from '@/components/home';
Vue.use(Router);
export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login
    },
    {
      path: '/home',
      component: Home,
      children: [
        {
          path: '/',
          name: 'index',
          component: Index
        },
        {
          path: '/console',
          name: 'console',
          component: Hello
        },
        {
          path: '/addCase',
          name: 'addCase',
          component: AddCase
        },
        {
          path: '/Test',
          name: 'test',
          component: Test
        },
        {
          path: '/caseClass',
          name: 'class',
          component: Class
        },
        {
          path: '/maintenance',
          name: 'maintenance',
          component: Maintenance
        },
        {
          path: '/addPre',
          name: 'addPre',
          component: AddPre
        },
        {
          path: '/desiredResult',
          name: 'result',
          component: Result
        },
        {
          path: '/preData',
          name: 'preData',
          component: PreData
        },
        {
          path: '/testPlan',
          name: 'testPlan',
          component: Plan
        },
        {
          path: '/testReport',
          name: 'testReport',
          component: Report
        },
        {
          path: '/addResultPage',
          name: 'addResultPage',
          component: AddResPage
        },
        {
          path: '/testPage',
          name: 'page',
          component: Page
        },
        {
          path: '/operator',
          name: 'operator',
          component: Operator
        }
      ]
    }
  ]
});
